<?php

namespace Acme\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\MainBundle\Entity\Odpoved
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Odpoved
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Otazka")
     * 
     * @var Otazka $otazka 
     */
    private $otazka;
    
    /**
     * @ORM\ManyToOne(targetEntity="Riesenie")
     * 
     * @var Riesenie $riesenie 
     */
    private $riesenie;

    /**
     * @var string $hodnota
     *
     * @ORM\Column(name="hodnota", type="string", length=50)
     */
    private $hodnota;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set hodnota
     *
     * @param string $hodnota
     */
    public function setHodnota($hodnota)
    {
        $this->hodnota = $hodnota;
    }

    /**
     * Get hodnota
     *
     * @return string 
     */
    public function getHodnota()
    {
        return $this->hodnota;
    }

    /**
     * Set otazka
     *
     * @param Acme\MainBundle\Entity\Otazka $otazka
     */
    public function setOtazka(\Acme\MainBundle\Entity\Otazka $otazka)
    {
        $this->otazka = $otazka;
    }

    /**
     * Get otazka
     *
     * @return Acme\MainBundle\Entity\Otazka 
     */
    public function getOtazka()
    {
        return $this->otazka;
    }

    /**
     * Set riesenie
     *
     * @param Acme\MainBundle\Entity\Riesenie $riesenie
     */
    public function setRiesenie(\Acme\MainBundle\Entity\Riesenie $riesenie)
    {
        $this->riesenie = $riesenie;
    }

    /**
     * Get riesenie
     *
     * @return Acme\MainBundle\Entity\Riesenie 
     */
    public function getRiesenie()
    {
        return $this->riesenie;
    }
}